package org.sun.sample.pojo;

import java.util.concurrent.ConcurrentLinkedQueue;

/**
 *
 */
public class LambdaSample {

    protected ConcurrentLinkedQueue<String> queue;

    public LambdaSample() {
        queue = new ConcurrentLinkedQueue<>();
    }

    public void add(String message) {
        queue.add(message);
    }

    public void printMessages() {
        queue.forEach((String message)->System.out.println(message));
    }

}
